#include<stdio.h>
#include<stdlib.h>
#include<time.h>
int main(int argc, char *argv[])
{
	int num;
	char flag;
	char tem;

	while(1){
		printf("请掷色子决定吃什么（输入0退出）：");
		scanf("%c", &flag);
		scanf("%c", &tem);
		if(flag=='0')break;

		srand(time(NULL));
		num = rand()%6+1;

		switch(num){
			case 1:
				printf("麻辣烫！\n");
				break;
			case 2:
				printf("猪肉炖粉条!\n");
				break;
			case 3:
				printf("kfc！\n");
				break;
			case 4:
				printf("米线！\n");
				break;
			case 5:
				printf("番茄鸡蛋面！\n");
				break;
			default:
				printf("请全班同学喝奶茶！\n");
				break;
		}
	}
	printf("欢迎下次使用！\n");
	return 0;	
}
